package by.dezhits.liltweets;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class WebActivity extends Activity {
	
	private WebView mWebView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_web);
		
		Intent intent = getIntent();
		String url = intent.getStringExtra(getString(R.string.link));
		
		mWebView = (WebView) findViewById(R.id.wv_web);
		mWebView.getSettings()
				.setJavaScriptCanOpenWindowsAutomatically(
						true);
		mWebView.getSettings().setPluginsEnabled(true);
		mWebView.setWebViewClient(new WebViewClient());
		mWebView.loadUrl(url);
	}
}
